package com.inlycat.mapper;

import com.inlycat.entity.VideoAttr;

/**
 * @author jarvan4dev@163.com
 * @since 2015年8月13日下午12:43:59
 * @category 影片属性mapper接口
 **/
public interface VideoAttrMapper {
	
	/**
	 * 插入影片，添加其附加属性
	 * @param videoAttr
	 * @return
	 */
	boolean insert(VideoAttr videoAttr) throws RuntimeException;
	
	/**
	 * 删除影片顺带删除其附加属性
	 * @param videoId
	 * @return
	 */
	boolean deleteByVideoId(Long videoId) throws RuntimeException;
	
	/**
	 * 更新非空字段
	 * @param videoAttr
	 * @return
	 */
	boolean updateSelectiveByVideoId(VideoAttr videoAttr) throws RuntimeException;
	
	/**
	 * 查询video的附加属性
	 * @param videoId
	 * @return
	 */
	VideoAttr selectByVideoId(Long videoId) throws RuntimeException;

}
